//
//  FileUpload.h
//  howcan
//
//  Created by iMac on 12-4-16.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FileUpload : NSObject  {
	NSString  * serverUrl;
	NSString  * userName;
	NSString  * commentTitle;
	NSString  * commentText;
	NSData    * imageData ;
	NSString  * commentId;
	id  delegate;
	SEL doneSelector;
    SEL errorSelector;
	BOOL uploadDidSucceed;	 
}

@property (nonatomic,retain) NSString * serverUrl;
@property (nonatomic,retain) NSString  * userName;
@property (nonatomic,retain) NSString  * commentTitle;
@property (nonatomic,retain) NSString  * commentText;
@property (nonatomic,retain) NSData    * imageData ;
@property (nonatomic,retain) NSString  * commentId;


-   (id)initWithUrlWithImageData: (NSString *)aServerUrl
						userName:(NSString*) uName
					commentTitle:(NSString*) title
					 commentText:(NSString*) msgText
					   commentId:(NSString*) productId
					   imageData:(NSData*) imgData
						delegate: (id)aDelegate
					doneSelector: (SEL)aDoneSelector
				   errorSelector: (SEL)aErrorSelector  ;

@end
